package Java_Test;

public abstract class Car {
    private String idcard;//车牌号
    private double rent;//日租金
    private  String brand;//品牌
    private  String type;//车辆类型
    private int seat;
    private int stste;//租聘状态 0：已租出 1：未租出
    private String ststes="";

    public Car( String type , String brand, String idcard,int seat, double rent) {
        this.type=type;
        this.brand=brand;
        this.idcard=idcard;
        this.rent=rent;
        this.seat=seat;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public double getRent() {
        return rent;
    }

    public void setRent(double rent) {
        this.rent = rent;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public int getStste() {
        return stste;
    }

    public void setStste(int stste) {
        if (stste==1){
            this.ststes="未租出";
        }else{
            this.ststes="已租出";
        }
    }

    public String getStstes() {
        return ststes;
    }

    public void setStstes(String ststes) {
        this.ststes = ststes;
    }

    public abstract double discount(int days);//折扣
}
